export default [
  {
    path: '/',
    components: '@/layouts/base-layouts',
    routes: [
      { path: '/login', component: '@/pages/login' },
      { path: '/reg', component: '@/pages/reg' },
      {
        path: '/goods',
        components: '@/layouts/aside-layouts',
        routes: [
          {
            path: '/goods',
            components: '@/pages/goods',
          },
          {
            path: '/goods-detail',
            components: '@/pages/goods-detail',
          },
        ],
      },
      { path: '/', redirect: '/login' },
      {path:'/test',components:'@/pages/test'},
      { component: '@/pages/404' },
    ],
  },
  { path: '/home', component: '@/pages/home' },
  { component: '@/pages/404' },
];
